Repository navigation
fix(sdv-ship): ci_wait.py --sha no longer raises KeyError 'Copilot' (0.26.1) - #75
Conversation
…0.26.1)
--sha mode reads no PR, so bot_states() is skipped and bots is {}. The
Copilot quota-refusal check indexed bots["Copilot"] before its
copilot_asked_at guard, so every --sha run ended on its first poll with
"ERROR: unexpected KeyError: 'Copilot'" and VERDICT: error (exit 6).
Read it with .get, as the CodeRabbit/Sourcery lookups already do.
Adds the first --sha test (ready and failed verdicts); it fails on main.
|
Sorry @saiemgilani, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 4 days and 14 hours by commenting |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Why
ci_wait.py --shanever worked: every run ended on its first poll withERROR: unexpected KeyError: 'Copilot'/VERDICT: error(exit 6).--shareads no PR, sobots = {}. The Copilot quota-refusal check readbots["Copilot"]before itscopilot_asked_at is not Noneguard could short-circuit.Change
ci_wait.py: that one lookup usesbots.get("Copilot", ("",))[0], like the CodeRabbit/Sourcery lookups.The other
bots[...]reads are unreachable under--sha(they need a Copilot request or both bots rate-limited).test_ci_wait.py: first--shatest, ready and failed verdicts. It fails on main with the KeyError.plugin.json: 0.26.1.Verified
release.py check: catalog, render, tools tests (74), hooks tests all ok.ci_wait.py sportsdataverse/.github --sha 14c633467givesVERDICT: ready(exit 0) on this branch andKeyErroron main.Summary by CodeRabbit